how to solve euler's method